package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 扩展属性的验证信息
 * </p>
 *
 * @author stylefeng
 * @since 2019-10-23
 */
@TableName("business_ext_property")
public class BusinessExtProperty extends Model<BusinessExtProperty> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 大类id
     */
    @TableField("cate_id")
    private String cateId;
    /**
     * 版本号
     */
    private Integer version;
    /**
     * 值得验证
     */
    @TableField("property_regex")
    private String propertyRegex;
    /**
     * 显示中文名称
     */
    private String show;
    /**
     * 详情
     */
    private String desc;
    @TableField("create_time")
    private Date createTime;
    @TableField("create_user")
    private String createUser;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getPropertyRegex() {
        return propertyRegex;
    }

    public void setPropertyRegex(String propertyRegex) {
        this.propertyRegex = propertyRegex;
    }

    public String getShow() {
        return show;
    }

    public void setShow(String show) {
        this.show = show;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BusinessExtProperty{" +
        ", id=" + id +
        ", cateId=" + cateId +
        ", version=" + version +
        ", propertyRegex=" + propertyRegex +
        ", show=" + show +
        ", desc=" + desc +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        "}";
    }
}
